package com.gxa.service.impl;

import com.gxa.mapper.FamilyhistoryMapper;
import com.gxa.pojo.Familyhistory;
import com.gxa.service.FamilyhistoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;
@Service("familyhistoryService")
public class FamilyhistoryServiceImpl implements FamilyhistoryService {
    @Resource
    private FamilyhistoryMapper familyhistoryMapper=null;
    @Override
    public Familyhistory findById(Integer id) {
        Familyhistory byId = familyhistoryMapper.findById(id);
        return byId;
    }

    @Override
    public boolean update(Familyhistory familyhistory) {
        boolean update = familyhistoryMapper.update(familyhistory);
        return update;
    }
}
